<?php $this->_extends('_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
	<div class="sec-info">
		<h3 style="float: left;"><?=h($sec['name']) ?> (<?= h($sec['code']) ?>)</h3><br />
		<div class="description"><?=$sec['follow_cnt'] ?>个关注; <?=$sec['press_cnt'] ?>条小新闻; <?=$sec['view_cnt'] ?>条评论   
		<?php if(isset($follow) && $follow): ?>
			<span style="font-size:19px">"</span>已关注<span style="font-size:19px">"</span>
		<?php elseif(isset($follow)):?>
			<a class="signboard ui-corner-all j-stock-favor" href="#" class="j-stock-favor">*关注</a>
		<?php endif;?><img class="follow-ajax-loader" src="/img/ajax-loader.gif" style="display:none" /><label style="color:red" class="follow-publish-err"></label></span><br />
		<input type="hidden" name="id" value="<?=$sec['id'] ?>" />
		</div>
	</div>
	
	
	<div class="view-press">
		<div class="sec-press">
			<h3>小新闻</h3>
			<?php if(!empty($ps)): foreach($ps as $p): ?>
			<div  class="press-entity">
				<a href="<?=url("press/p", "id/{$p['id']}") ?>"><?=h($p['press']) ?></a><br />
				<span class="discription" style="font-size: 13px;">@ <?=$p['press_time'] ?> 
				<?php $u=h($p['username']);  if($u != 'witpn'): ?><a href="<?=url("people/$u"); ?>" class="bold"><?=h($p['nickname']) ?></a><?php endif;?>
				</span>
			</div>
			<?php endforeach; else:?>
			<div class="press-entity" style="width: 10em;">
				还没有相关新闻
			</div>
			<?php endif; ?>
		</div>
		<div class="sec-view">
		
		</div>
    </div>
<?php $this->_endblock(); ?>
